home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / c / cardpkg_1_2.readme < prev    next >
Encoding:
Text File  |  1994-10-08  |  3.7 KB  |  72 lines

  1. Short:    Playing card images & code (SAS,Aztec)
  2. Author:   Todd_Lewis@unc.edu
  3. Uploader: Todd_Lewis@unc.edu
  4. Type:     dev/c
  5.  
  6. Todd M. Lewis                                   Todd_Lewis@unc.edu
  7. 2601 Piedmont Drive                                 (919) 776-7386
  8. Sanford, NC 27330-9437
  9. USA
  10.  
  11. The "card package" contains C source code for incorporating playing
  12. card images into Intuition programs.  Two complete sets of card
  13. images are provided.  One set has horizontal cards, the other has
  14. vertical cards.  Though they are small (they were designed so that
  15. 52 cards could be shown at the same time on a Workbench screen),
  16. attention to detail has not been spared.  All the face cards are
  17. unique.  The Jack of Spades, the Jack of Hearts, and the King of
  18. Diamonds are all "one-eyed" like they are supposed to be.  A joker
  19. image is included, as well as the images of the back of a card, a
  20. blank card, and black card image.
  21.  
  22. The programming interface is straight-forward.  No initialization
  23. is necessary (except for opening the intuition.library and the
  24. graphics.library).  A blind type is defined (CardID_t) for
  25. representing cards.  Four suits are defined for "normal" cards
  26. (SUIT_SPADES, SUIT_HEARTS, SUIT_CLUBS, and SUIT_DIAMONDS) plus an
  27. additional suit for the special images (SUIT_SPECIAL).  Functions
  28. are provided for translating a (suit,rank) pair to a CardID
  29. (CardID()) and back (CardSuit() and CardRank()).  These functions
  30. provide error checking for invalid CardIDs and impossible
  31. (suit,rank) combinations.  Functions are provided to initialize
  32. (CardRange()) and shuffle (Shuffle()) an array of CardIDs.  Cards
  33. are displayed by calling either ShowVCard() or ShowHCard().
  34. Defined constants give the width and height of both the horizontal
  35. and vertical card images.
  36.  
  37.  
  38. ============================= Archive contents =============================
  39.  
  40. Original  Packed Ratio    Date     Time    Name
  41. -------- ------- ----- --------- --------  -------------
  42.      420     254 39.5% 22-Sep-94 00:35:34  CardPkg.info
  43.     4752    2045 56.9% 25-Sep-94 20:37:56  CardPkg/Card_doc_brush
  44.      172     130 24.4% 25-Sep-94 20:37:58  CardPkg/Card_doc_brush.info
  45.    14460    7121 50.7% 25-Sep-94 20:37:58  CardPkg/CardHBrush
  46.    86798    9515 89.0% 25-Sep-94 20:39:30  CardPkg/CardHBrush.c
  47.      172     132 23.2% 25-Sep-94 20:37:58  CardPkg/CardHBrush.info
  48.     4674    1777 61.9% 26-Sep-94 00:12:38  CardPkg/CardHImages.c
  49.     1533     673 56.0% 25-Sep-94 20:37:58  CardPkg/CardHImages.h
  50.     2682     802 70.0% 25-Sep-94 23:12:42  CardPkg/Cards.c
  51.    14870    4357 70.6% 26-Sep-94 00:37:52  CardPkg/Cards.doc
  52.      468     226 51.7% 25-Sep-94 20:37:56  CardPkg/Cards.doc.info
  53.     1393     479 65.6% 25-Sep-94 23:55:24  CardPkg/Cards.h
  54.    17498    9505 45.6% 25-Sep-94 20:37:58  CardPkg/CardVBrush
  55.    88736   12052 86.4% 25-Sep-94 20:38:36  CardPkg/CardVBrush.c
  56.      172     133 22.6% 25-Sep-94 20:37:58  CardPkg/CardVBrush.info
  57.     4199    1700 59.5% 26-Sep-94 00:12:58  CardPkg/CardVImages.c
  58.     1519     662 56.4% 25-Sep-94 20:37:58  CardPkg/CardVImages.h
  59.    28736    9377 67.3% 26-Sep-94 00:34:18  CardPkg/Hello_H
  60.     4592    1652 64.0% 26-Sep-94 00:31:32  CardPkg/Hello_H.c
  61.      618     437 29.2% 25-Sep-94 20:37:56  CardPkg/Hello_H.info
  62.    29252   11213 61.6% 26-Sep-94 00:36:14  CardPkg/Hello_V
  63.     4556    1647 63.8% 26-Sep-94 00:36:02  CardPkg/Hello_V.c
  64.      898     686 23.6% 25-Sep-94 20:37:58  CardPkg/Hello_V.info
  65.      456     220 51.7% 25-Sep-94 20:37:56  CardPkg/includes.c
  66.     2082     755 63.7% 26-Sep-94 00:26:30  CardPkg/makefile
  67.     1455     475 67.3% 25-Sep-94 21:12:44  CardPkg/SMakefile
  68.     6128    3955 35.4% 25-Sep-94 20:38:00  CardPkg/trimline
  69.      769     362 52.9% 25-Sep-94 20:37:58  CardPkg/trimline.c
  70. -------- ------- ----- --------- --------
  71.   324060   82342 74.5% 27-Sep-94 11:32:10   28 files
  72.